var zTree;
//使用简单的数组方式
var setting = {
	isSimpleData: true,
	treeNodeKey: "id",
	treeNodeParentKey: "pId",
	showLine: true,
	root:{ 
		isRoot:true,
		nodes:[]
	}
};
$(document).ready(function(){
	setting.expandSpeed = ($.browser.msie && parseInt($.browser.version)<=6)?"":"fast";
	zTree = $("#tree").zTree(setting, zNodes);
	var nodes = zTree.getNodes();
	zTree.selectNode(nodes[0].nodes[0]);
	//展开第一个节点及其子节点
	zTree.expandNode(nodes[0],true,true);
	//打开第一个节点对应的URL连接
	document.getElementById("listFrame").src = nodes[0].nodes[0].url;
});